package com.cnap.model.schedule;

import com.cnap.model.validator.EnumCheck;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

/**
 * 更新微服务状态参数类
 *
 * @author xc
 **/
@ApiModel
public class UpdateMicroServiceStatusParam {
    // id
    @ApiModelProperty(value = "服务id", required = true)
    @NotNull(message = "服务id不能为空")
    private String id;
    // 状态
    @ApiModelProperty(value = "状态", required = true, allowableValues = "5, 6")
    @EnumCheck(enumClass = StrategyStatusEnum.class, message = "状态错误")
    private String status;

    /**
     * get
     *
     * @return Id
     */
    public String getId() {
        return id;
    }

    /**
     * set
     *
     * @param id id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * get
     *
     * @return Status
     */
    public String getStatus() {
        return status;
    }

    /**
     * set
     *
     * @param status status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "UpdateMicroServiceStatusParam{" +
                "id='" + id + '\'' +
                ", status='" + status + '\'' +
                '}';
    }
}
